package com.have.blog.model.models;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class TBlog implements Serializable {
    @ApiModelProperty(value = "唯一uid")
    private String uid;

    @ApiModelProperty(value = "唯一oid")
    private Integer oid;

    @ApiModelProperty(value = "博客标题")
    private String title;

    @ApiModelProperty(value = "博客简介")
    private String summary;

    @ApiModelProperty(value = "标签uid")
    private String tagUid;

    @ApiModelProperty(value = "博客点击数")
    private Integer clickCount;

    @ApiModelProperty(value = "博客收藏数")
    private Integer collectCount;

    @ApiModelProperty(value = "标题图片uid")
    private String fileUid;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "管理员uid")
    private String adminUid;

    @ApiModelProperty(value = "是否原创（0:不是 1：是）")
    private String isOriginal;

    @ApiModelProperty(value = "作者")
    private String author;

    @ApiModelProperty(value = "文章出处")
    private String articlesPart;

    @ApiModelProperty(value = "博客分类UID")
    private String blogSortUid;

    @ApiModelProperty(value = "推荐等级(0:正常)")
    private Integer level;

    @ApiModelProperty(value = "是否发布：0：否，1：是")
    private String isPublish;

    @ApiModelProperty(value = "排序字段")
    private Integer sort;

    @ApiModelProperty(value = "是否开启评论(0:否 1:是)")
    private Integer openComment;

    @ApiModelProperty(value = "类型【0 博客， 1：推广】")
    private Integer type;

    @ApiModelProperty(value = "外链【如果是推广，那么将跳转到外链】")
    private String outsideLink;

    @ApiModelProperty(value = "投稿用户UID")
    private String userUid;

    @ApiModelProperty(value = "文章来源【0 后台添加，1 用户投稿】")
    private Integer articleSource;

    @ApiModelProperty(value = "是否开启评论(0:否 1:是)")
    private Integer startComment;

    @ApiModelProperty(value = "博客内容")
    private String content;

    private TBlogSort blogSort;

    private List<TTag> tagList;

    public List<TTag> getTagList() {
        return tagList;
    }

    public void setTagList(List<TTag> tagList) {
        this.tagList = tagList;
    }

    public TBlogSort getBlogSort() {
        return blogSort;
    }

    public void setBlogSort(TBlogSort blogSort) {
        this.blogSort = blogSort;
    }

    private static final long serialVersionUID = 1L;

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public Integer getOid() {
        return oid;
    }

    public void setOid(Integer oid) {
        this.oid = oid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getTagUid() {
        return tagUid;
    }

    public void setTagUid(String tagUid) {
        this.tagUid = tagUid;
    }

    public Integer getClickCount() {
        return clickCount;
    }

    public void setClickCount(Integer clickCount) {
        this.clickCount = clickCount;
    }

    public Integer getCollectCount() {
        return collectCount;
    }

    public void setCollectCount(Integer collectCount) {
        this.collectCount = collectCount;
    }

    public String getFileUid() {
        return fileUid;
    }

    public void setFileUid(String fileUid) {
        this.fileUid = fileUid;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getAdminUid() {
        return adminUid;
    }

    public void setAdminUid(String adminUid) {
        this.adminUid = adminUid;
    }

    public String getIsOriginal() {
        return isOriginal;
    }

    public void setIsOriginal(String isOriginal) {
        this.isOriginal = isOriginal;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getArticlesPart() {
        return articlesPart;
    }

    public void setArticlesPart(String articlesPart) {
        this.articlesPart = articlesPart;
    }

    public String getBlogSortUid() {
        return blogSortUid;
    }

    public void setBlogSortUid(String blogSortUid) {
        this.blogSortUid = blogSortUid;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getIsPublish() {
        return isPublish;
    }

    public void setIsPublish(String isPublish) {
        this.isPublish = isPublish;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getOpenComment() {
        return openComment;
    }

    public void setOpenComment(Integer openComment) {
        this.openComment = openComment;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getOutsideLink() {
        return outsideLink;
    }

    public void setOutsideLink(String outsideLink) {
        this.outsideLink = outsideLink;
    }

    public String getUserUid() {
        return userUid;
    }

    public void setUserUid(String userUid) {
        this.userUid = userUid;
    }

    public Integer getArticleSource() {
        return articleSource;
    }

    public void setArticleSource(Integer articleSource) {
        this.articleSource = articleSource;
    }

    public Integer getStartComment() {
        return startComment;
    }

    public void setStartComment(Integer startComment) {
        this.startComment = startComment;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", uid=").append(uid);
        sb.append(", oid=").append(oid);
        sb.append(", title=").append(title);
        sb.append(", summary=").append(summary);
        sb.append(", tagUid=").append(tagUid);
        sb.append(", clickCount=").append(clickCount);
        sb.append(", collectCount=").append(collectCount);
        sb.append(", fileUid=").append(fileUid);
        sb.append(", status=").append(status);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", adminUid=").append(adminUid);
        sb.append(", isOriginal=").append(isOriginal);
        sb.append(", author=").append(author);
        sb.append(", articlesPart=").append(articlesPart);
        sb.append(", blogSortUid=").append(blogSortUid);
        sb.append(", level=").append(level);
        sb.append(", isPublish=").append(isPublish);
        sb.append(", sort=").append(sort);
        sb.append(", openComment=").append(openComment);
        sb.append(", type=").append(type);
        sb.append(", outsideLink=").append(outsideLink);
        sb.append(", userUid=").append(userUid);
        sb.append(", articleSource=").append(articleSource);
        sb.append(", startComment=").append(startComment);
        sb.append(", content=").append(content);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}